<?php
/*
$con = mysql_connect("localhost", "root", "") or die("error:".mysql_error());

mysql_select_db("sq_shoppers", $con);
$sql = "select * from recommend where rec_id=24";

$result = mysql_query($sql) or die(mysql_error());

$row = mysql_fetch_assoc($result);
//echo $row['rec_id']."  ".$row['rec_month']."  ".$row['rec_content']."  ".$row['rec_type'];

echo PHP_VERSION;

$url = "http://www.spotshoppers/admin.php/index/recomment";
echo "SCRIPT_NAME=".$_SERVER["SCRIPT_NAME"]."<br/>"."HTTP_HOST=".$_SERVER["HTTP_HOST"]."<br/>"."request-uri=".$_SERVER['REQUEST_URI']."<br/>"."path_info=".$_SERVER["PATH_INFO"];

echo "<br/>";
echo $s = serialize(array("img"=>"aaa","user_name"=>"bbb","comment"=>888,"title"=>"haha12"));
echo "<br/>";
$us = unserialize($s);
echo "<pre/>";
print_r($us);

echo "<br/>";
echo session_id();
echo "<br/>";

$r = array(
	 "img"=>"图片",
	 "file"=>"文件",
	 "use"=>"用户名",
	 "em"=>"用户邮箱",
	 "com"=>"评论.....",
	 "cont"=>"这里是评论的内容",
	 "til"=>"标题",
	 "ok"=>"ok,haha",
	 array("1"=>"11","2"=>"22")
);
$js=json_encode($r);
echo "rs=".$rs = serialize($r)."<br/>";
echo "js=".$js."<br/>";
echo "dejs=";
echo "<pre/>";
$arry = json_decode($js);
print_r($arry);
echo "<br/>";
//$a = unserialize($rs);
$a = unserialize("a:4:{s:3:\"img\";s:22:\"128557169063728000.png\";s:9:\"user_name\";s:24:\"bingbing0117@hotmail.com\";s:7:\"comment\";s:946:\" 店面整洁卫生方面还是可圈可点的，泡芙味道也很好，可能最近天气炎热的关系，室外吃的话感觉稍微甜腻了些。这次前往“贝儿多爸爸”，感觉几位女服务员都不太会微笑。另外，点单的时候出了点小状况，我点了4个泡芙，结果拿到手只有2个，是一个铭牌为‘陈颖’的员工不小心搞错了，在我的提醒下，她立即补给我了，但是把后来的2个泡芙直接装进我原来的袋子里，有点小拥挤。后来，我询问‘马娇’是否能给我一个盒子，她马上很主动地帮我装好了4个泡芙，虽说脸上的微笑不是特别灿烂，不过这样的服务态度还是很不错的！ 每一个员工都是店家与公众接触的触角，她们的一举一动、一言一行都代表着店家的形象。如果能在员工的培训上再下点功夫，使员工们再多一些真心的微笑，那就完美啦！ \";s:5:\"title\";s:27:\"贝儿多爸爸门店任务\";}");
//echo $a;
//echo "<pre/>";
//echo $a;
//print_r($a);
echo "<br/>";


echo "*****************"."<br/>";
echo round(8.145,2);

$ddd = null;
if($ddd>=0 && $ddd !== null)
{
	echo "ddd=".$ddd;
}
echo "<br/>";
$ary['aa'] = array();
$ary['aa'][] = 11;
$ary['aa'][] = 11;
$ary['aa'][] = 11;
echo count($ary['aa']);
echo "<pre/>"."ary=";
print_r($ary);
*/
echo $_POST['rd'];

echo round(12.3/5,1);

$aa[] = array(2,5);
$aa[] = array(8,9);
echo "<pre/>";
print_r($aa);

if(($fp = fopen('E:\xampp\htdocs\mysteryshopper\shoppers\public\upload\file.csv', 'w+')) != false){
			fwrite($fp,iconv('UTF-8','GBK','时间,任务,是非,打分')."\r\n");			
			fclose($fp);
		}


?>


